package com.xiaoye.app.entity;

import java.util.Date;

/**
 * 登录用户实体类
 * 
 * @author xiaoye
 * @date 2018年5月3日
 * 
 * 
 *
 */
public class User {
	private Integer id;
	private String name;
	private String username;
	private String password;
	private String token;
	private String tel;
	/**
	 * 角色权限ID
	 */
	private Integer role;
	private String QQ;
	private String WeChat;
	/**
	 * 缩略图
	 */
	private String headPortrait;
	private Date createDate;
	private Date modifyDate;
	/**
	 * 是否删除;0:默认未删除;1:已删除;
	 */
	private Integer isDelete;

	public User() {
	}

	public User(Integer id, String name, String username, String password, String token, String tel, Integer role,
			String qQ, String weChat, String headPortrait, Date createDate, Date modifyDate, Integer isDelete
		) {
		super();
		this.id = id;
		this.name = name;
		this.username = username;
		this.password = password;
		this.token = token;
		this.tel = tel;
		this.role = role;
		QQ = qQ;
		WeChat = weChat;
		this.headPortrait = headPortrait;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.isDelete = isDelete;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getQQ() {
		return QQ;
	}

	public void setQQ(String qQ) {
		QQ = qQ;
	}

	public String getWeChat() {
		return WeChat;
	}

	public void setWeChat(String weChat) {
		WeChat = weChat;
	}

	public String getHeadPortrait() {
		return headPortrait;
	}

	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}


	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", username=" + username + ", password=" + password + ", token="
				+ token + ", tel=" + tel + ", role=" + role + ", QQ=" + QQ + ", WeChat=" + WeChat + ", headPortrait="
				+ headPortrait + ", createDate=" + createDate + ", modifyDate=" + modifyDate + ", isDelete=" + isDelete
				+ "]";
	}

}
